package org.csu.xzypetstore.persistence;


import org.csu.xzypetstore.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface orderMapper {
    List<Order> getOrdersByUsername(String username);

    List<Order> getOrders();

    Order getOrder(int orderId);

    boolean insertOrder(Order order);

    boolean insertOrderStatus(Order order);

    boolean deleteOrder(int orderId);

    boolean deleteOrder1(int orderId);

    boolean postProduct(Order order);
}
